use strict;
use warnings;
use Test::More tests => 3;

BEGIN { use_ok( 'Askgene::Database::Schema' ) }

my ($db, $host, $user, $passwd ) = ( 'askgene', 'localhost', 'wallacer', '' );
my $dsn = "dbi:mysql:database=$db;host=$host";

my $schema = Askgene::Database::Schema->connect($dsn, $user, $passwd);

my $project = $schema->resultset('Project')->find('my_first_project');
is($project->library_count, 2);
is($project->entry_count, 1);
